package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 自定义模板
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【自定义模板】的参数")
@Data
public class CustomDTO extends BaseDTO {

    @ApiModelProperty(notes = "模板id", required = true)
    @NotNull(message = "模板id不能为空")
    private String templateId;

    @ApiModelProperty(notes = "用工单位id")
    private String companyId;

    @ApiModelProperty(notes = "用工单位id集合")
    private List<String> companyIdList;

    @ApiModelProperty(notes = "模板id集合")
    private List<String> templateIdList;
}
